//
//  FirstViewController.m
//  Home Saigon
//
//  Created by Aka on 11/30/13.
//  Copyright (c) 2013 Le Zoom. All rights reserved.
//

#import "FirstViewController.h"
#import "GUIController.h"

@interface FirstViewController ()

@end

@implementation FirstViewController

-(id)initWithGUI:(GUIController*)_mainGUI{
    self = [super init];
    mainGUI = _mainGUI;
    return self;
}


- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    //add Logo
    UIImage *logo = [UIImage imageNamed:@"logo.png"];
    UIImageView *logoView =[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 200,85)];
    logoView.image=logo;
    logoView.center = CGPointMake(self.view.frame.size.width/2, self.view.frame.size.height/2);
    //add Text
    UILabel *titleVersion = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 30)];
    titleVersion.center = CGPointMake(self.view.frame.size.width/2, self.view.frame.size.height/2+200);
    titleVersion.text = @"Version 1.0";
    [titleVersion setFont:[UIFont systemFontOfSize:12]];
    titleVersion.textColor = [UIColor grayColor];
    titleVersion.backgroundColor = [UIColor clearColor];
    titleVersion.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleVersion];
    
    [self.view addSubview:logoView];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
